// greencuisine

// Effectively switches tabs on page
function switchTab(tab)
{
	hideTab('tab_link_main', 'tab_main');
	hideTab('tab_link_settings', 'tab_settings');
	hideTab('tab_link_about', 'tab_about');
	
	showTab('tab_link_'+tab, 'tab_'+tab);
}

// Shows a single tab
function showTab(linkID, tabID)
{
	var link = getElem(linkID);
	var tab = getElem(tabID);
	
	link.className = 'active';
	tab.style.display = 'block';
}

// Hides a single tab
function hideTab(linkID, tabID)
{
	var link = getElem(linkID);
	var tab = getElem(tabID);
	
	link.className = 'inactive';
	tab.style.display = 'none';
}
